<div style="width: 100%;height: 100%;overflow-y: auto" id="MibQuery" ng-controller="MibQueryCtrl">
    <div id="query" class="col-sm-12" style="padding: 0px">
        <form class="form-inline">
            <div class="col-sm-12">
                <div class="form-group">
                    <label for="moduleNameSelect">模块名</label>
                    <select class="form-control" id="moduleNameSelect"
                            ng-model="SelectedModule" ng-options="x.moduleName for x in MibModuleList"
                            ng-change="queryTree()">
                    </select>
                </div>
                <div class="form-group">
                    <button class="form-control" data-toggle="modal" data-target="#selectModulesModal">自定义导入</button>
                </div>
            </div>
        </form>
    </div>
    <div id="data" class="col-sm-12" style="padding: 0px;">
        <div id="MibTree"></div>
    </div>


    <div class="modal fade" id="selectModulesModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        选择mib模块
                    </h4>
                </div>
                <div class="modal-body">
                    <div>
                        <table class="table">
                            <tr>
                                <th style="width: 1em"><input type="checkbox"></th>
                                <th>模块名</th>
                            </tr>
                            <tr ng-repeat="m in MibModuleList">
                                <td><input type="checkbox" ng-model="m.selected"></td>
                                <td>{{m.moduleName}}</td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="queryTrees()">确定
                    </button>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>
</div>